<template>
  <div class="dropdown-picker" @click="handleClick">
    <div class="lottery-name">
      <slot name="title"></slot>
    </div>
    <div class="arrow-down border-left">
      <slot name="icon"></slot>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    handleClick() {
      this.$emit('click')
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/variables.styl'
  @import '~@/assets/styles/mixins.styl'
  .dropdown-picker 
    width 128px 
    height 30px 
    box-sizing border-box 
    border-radius 3px 
    border 1px solid $color-divide-line
    background-color $color-text-button
    display flex
    align-items center
    .lottery-name 
      width 98px
      text-align center
      color $color-sub-grey
    .arrow-down 
      width 30px 
      line-height 30px
      text-align center
      .icon 
        extend-click()
        .iconfont 
          font-size 12px
          color $color-theme-dark
    
      

</style>